package com.alex.spring.annotation;/**
 * Created by Administrator on 2018\10\5 0005.
 */

import org.springframework.beans.factory.annotation.Required;

/**
 * @author Administrator
 * @date 2018\10\5 0005
 */
public class Student {
    private Integer age;
    private String name;
    @Required
    public void setAge(Integer age) {
        this.age = age;
    }
    public Integer getAge() {
        return age;
    }
    @Required
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
}